package peerToPeerFacebook.proj;

import java.io.Serializable;

public class RPCReturnPacket extends RPCPacketBase
{
	private static final long serialVersionUID = 8278771328722183877L;

    public Status status;
    public Serializable result;  
	
	public RPCReturnPacket(long sequenceID, Status status, Serializable result)
	{
		super(sequenceID, RPCPacketBase.Action.Return);
		
		this.status = status;
		this.result = result;
	}

	/** Produces string representation of this packet
	 * @return String definition of the packet
	 */
	@Override
	public String toString()
	{
		return super.toString() + ", Status: " + status + ", Result: " +
				getStringDefinition(new Serializable[] { result });
	}
}
